# $Id: PKGBUILD 65759 2012-02-22 12:18:18Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Martin Imobersteg <imm@gmx.ch>

pkgname=perl-crypt-smbhash
pkgver=0.12
pkgrel=2
pkgdesc="Perl/CPAN Module Crypt::SmbHash : Perl-only implementation of lanman and nt md4 hash functions, for use in Samba style smbpasswd entries."
arch=("any")
url="http://search.cpan.org/dist/Crypt-SmbHash/SmbHash.pm"
license=("GPL")
source=('http://search.cpan.org/CPAN/authors/id/B/BJ/BJKUIT/Crypt-SmbHash-0.12.tar.gz')
md5sums=('a6e3f4d65a89bfcc9ba0c69691e6105b')

build() {
  cd $srcdir/Crypt-SmbHash-0.12
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make pure_install doc_install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
